﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ERPWinFormWork.Test.Test.Dtos
{
    /// <summary>
    /// 物品检验DTO
    /// </summary>
    public class Goods_InspectionDtos
    {
        /// <summary>
        /// 检验Id
        /// </summary>
        [DisplayName("检验Id")]
        public int Id { get; set; }
        /// <summary>
        /// 检验类型(1.来料检验、2.出货检验)
        /// </summary>
        [DisplayName("检验类型")]
        public int Inspection_Type { get; set; }
        /// <summary>
        /// 检验编号
        /// </summary>
        [DisplayName("检验编号")]
        public string InspectionNode { get; set; }
        /// <summary>
        /// 检验单名称
        /// </summary>
        [DisplayName("检验单名称")]
        public string InspectionName { get; set; }
        /// <summary>
        /// 发货日期
        /// </summary>
        [DisplayName("发货日期")]
        public DateTime Shipment_Date { get; set; }
        /// <summary>
        /// 检验日期
        /// </summary>
        [DisplayName("检验日期")]
        public DateTime Inspection_Date { get; set; }
        /// <summary>
        /// 检验部门Id
        /// </summary>
        [DisplayName("检验部门Id")]
        public int? Department_Id { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        [DisplayName("部门")]
        public string DepartmentName { get; set; }
        /// <summary>
        /// 销售Id
        /// </summary>
        [DisplayName("销售Id")]
        public int? Sale_Id { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        [DisplayName("产品Id")]
        public int? ProductId { get; set; }
        /// <summary>
        ///成品名称
        /// </summary>
        [DisplayName("产品名称")]
        public string Product_Name { get; set; }
        /// <summary>
        /// 成品编号
        /// </summary>
        [DisplayName("产品编号")]
        public string Product_Number { get; set; }
        /// <summary>
        /// 产品-规格型号
        /// </summary>
        [DisplayName("规格型号")]
        public string Specification { get; set; }
        /// <summary>
        /// 产品-单位
        /// </summary>
        [DisplayName("单位")]
        public string Unit { get; set; }
        /// <summary>
        /// 采购Id
        /// </summary>
        [DisplayName("采购Id")]
        public int? Purchase_Id { get; set; }
        /// <summary>
        /// 物料Id
        /// </summary>
        [DisplayName("物料Id")]
        public int? MaterialId { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        [DisplayName("物料编号")]
        public string MaterialNumber { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        [DisplayName("物料名称")]
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料-规格型号
        /// </summary>
        [DisplayName("物料规格型号")]
        public string Specifications { get; set; }
        /// <summary>
        /// 物料-单位id
        /// </summary>
        [DisplayName("物料单位Id")]
        public int? Unit_Id { get; set; }
        /// <summary>
        /// 物料-单位名称
        /// </summary>
        [DisplayName("物料单位")]
        public string UnitName { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        [DisplayName("批次")]
        public string Batch { get; set; }
        /// <summary>
        /// 检验项目Id
        /// </summary>
        [DisplayName("检验项目Id")]
        public int? Testing_ItemsId { get; set; }
        /// <summary>
        /// 致命缺陷数
        /// </summary>
        [DisplayName("致命缺陷数")]
        public int? Fatal_DefectCount { get; set; }
        /// <summary>
        /// 严重缺陷数
        /// </summary>
        [DisplayName("严重缺陷数")]
        public int? Serious_DefectCount { get; set; }
        /// <summary>
        /// 轻微缺陷数
        /// </summary>
        [DisplayName("轻微缺陷数")]
        public int? Minor_DefectCount { get; set; }

        /// <summary>
        /// 发货数量==销售数量
        /// </summary>
        [DisplayName("发货数量")]
        public int? Sales_Quantity { get; set; }

        /// <summary>
        /// 检测数量
        /// </summary>
        [DisplayName("检测数量")]
        public int? Inspection_Count { get; set; }
        /// <summary>
        /// 合格数量
        /// </summary>
        [DisplayName("合格数量")]
        public int? Qualified_Count { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        [DisplayName("不合格数量")]
        public int? NoQualified_Count { get; set; }
        /// <summary>
        /// 致命缺陷率
        /// </summary>
        [DisplayName("致命缺陷率")]
        public int? Fatal_Defect_Rate { get; set; }
        /// <summary>
        /// 严重缺陷率
        /// </summary>
        [DisplayName("严重缺陷率")]
        public int? Serious_Defect_Rate { get; set; }
        /// <summary>
        /// 轻微缺陷率
        /// </summary>
        [DisplayName("轻微缺陷率")]
        public int? Minor_Defect_Rate { get; set; }
        /// <summary>
        /// 检测结果
        /// </summary>
        [DisplayName("检测结果")]
        public string Detection_Result { get; set; }
        /// <summary>
        /// 检验结果备注
        /// </summary>
        [DisplayName("备注")]
        public string Notes { get; set; }
    }
}
